Rewriting CL parser in YQL/JQuery