Refactor js

- Renamed variables for clarity's sake.
- Refactored logic out of the Recorder class.
- Moved the Recorder class into it's own file separate from the recorder view.