added document example of parsing in javascript