tried to get the page_id dynamically. Still needs some work.
Started a new page.php from scratch. Finished the basic layout and js functionality.