fixed js file issues