clean up JS file