Made JSLint happy
JS version