interactive fiction parser written in javascript