Postfixing Math Expressions - Shunting Yard Algorithm in JavaScript.