Javascript based RPN calculator