Revert "halfway through javascript routes and tests. this section is a mess compared to the first sections of the app...pretty dissapointed..."

This reverts commit bdbc198cec450b2aaa10c5417a8794630094a367.