moved most everything into separate js files; moved locations into its own js file. i'm so cool