fixing style in JS file