Add ajax, better javascript