small changes to js file