Added a javascript sample