updated workspace javascript