Checked with JSLint