Update dockworker.js

no need to wrap arrays in arrays