moved a line around for organization
changed planner.js to main.js on the frontend for unambiguity