Added example file in js folder for example