Move initial workspace creation logic to javascript