removed unused js from footer and refactored front page clicker jquery