setup ajax on homepage