Adding incomplete crap
Changed index to return json, added global.js and jquery to default layout.