refactoring, enabling strict for JSLint