Javscript library to automate parsing of tokens into operations