changed to js file