Fixed bug on addtohome.js