few changes to js file