made the js file faster