Code validated through JSLint