Universal Module Definition, minor fixes (pointed out by using jshint)