Simple Javascript parser usage