small changes to js files. fixed a typo.