Moved scripts to footer and added analytics