Made AJAX page loading work. Dunno how.