Jasmine tests

I'm trying to get more familiar with testing (more specifically with JS testing frameworks,) and I figured this would be a good opportunity. Likewise, this should help with future contributions.

I plan on writing more tests.