js file

fixed bugs