javscript parser example