Fix errors not being propogated to teh end user.
The root cause of the error seen in #9 (closed) was that some res.json()
were not being awaited.
The easiest way to fix this was to do a smol overhaul with a focus on standardization and de-duplication.
By seperating the JS out into their own files it allows IDE's to give us more powerful tools to play with while also giving us better tools to work with (modules/importing)
Closes #9 (closed)