code is now JS lint compliant