Encapsulating global namespaces to pass JSHint tests

Hi there, 

Trying to build [common.js](https://github.com/commons/common.js), I had to tweak the global namespace definition. 

Cheers, 
Makis