added namespace solution passing qunit tests