Update workspace.js

implemented clear function for codemap