cleanup of js file