One pager working using ajax