jshint fixes
freeze map after it is registered
jshint and version 0.6