split up server-side code into smaller files for maintenance purposes
moved a line around for organization
changed planner.js to main.js on the frontend for unambiguity
removed whitespace