move js file into example