jshint configuration, minor code corrections based on jshint; closes #98