added QueueManager.js

Reduced extend()
Added nice comments to all relevant methods
Passes jsHint