added 3 pages, did javascript work

split up the js file into a sidebar file, then the file that was only
being used for the one panel on index. added the 3 other pages, and a
'base.html' page to work off of when creating a new page.