a javascript exercise to implement an Reverse Polish Notation calculator