Re-writing home.js