js file cleanup