Apply "use strict"; to home.js only. Use JSHint to neaten out home.js