cleaned up js code
updated js code
fixed home.js