Clean up JS file