Clean Up JS

Failed to contain in self invoking function as the site uses require.js to load JS asynchronously.