#24: Find a library for JS unit testing and implement unit tests for existing functionality
Fixed a few minor issues