Shuttle parser, written in Javascript