ENYO-3082: jsdoc-ified some comments
ENYO-3082: removed call to alert
ENYO-3082: used intermediate var to clarify function call
ENYO-3082: fix traces
ENYO-3082: pass along err when calling next
ENYO-3082: applied enyo coding standard on else clauses