Seperated math functions from app.js into math.js module, added some mor...

...e vector math functions

Renamed `vectorLength` to `magnitude`

Makes organizing vector math a bit easier