Added some more Javascript sample code