cleaning up jquery
changing json sends to res.json
downgrading jquery for IE 8