Passed the code through JSLint