fixing according to JSLint standards