added js file and note on example