Added view, route, & base controller method for adding new pages. Extracted JS to external file. Added global js object in admin master for php generated vars.