script to js file