Cleanup of JS