added jslint
added inherits