jslint and resolve Printed undefined