A prefix (Polish) notation parser in JS