Add extend and ready. Lint code using JSLint.