Added parseSidebar() method.
Wrote some js for lazyloading sidebar stuff. Stopped at templating.
Added main JS file via functions file.
Separated out macros and refined sidebar display.
More sidebar refinement.
Added a comment.