minor changes to js file