ADDED sample Javascript code.