First iteration of unit tests checked in
Fixing jshint issues