removed some unnecessary code from js files