Fixed jslint issue with Promise