Added more examples to JS advanced

Change-Id: I565d7ff8a874e85376858b88c7bab27d8ccc0e08