Optimizied workspace JS