change to live ip
move script to common.js and home.html