Added xhr includes to homepage
Updated scripts to use smg.js library