jscs fixes
Fix issue due to globals and require