Code cleanup on dockedWorkspaces.js