add namespace into php code, update namespace in js, jasmine spec has been rewrited and now categories can be render