jslint and added requiredFN
todo comments