Fixed some jshint issues, wrote the first test and started debugging issues with the code.