Parse and execute polish notation expression with javascript