moved js code from home.html to home.js
now better
duplication check