Added support for AJAX and including custom javascript files for pages.