Cleanup JavaScript in frontend modules.