JSLint specifications - cleaned up code