all queue files refactored into functions with returns, and all jscs/jshint problems fixed