optimize js file