Completed JS script and example
Added JS script and example