made adjustment to js file