fixed workspace's javascript