More bug fixes. Jslint.