Update dockedDash.js

To wait the dead time to switch workspace I added the boolean already_switched, otherwise everytime a timeout gets added for ever.