Define js vars before panel loading in workspaces/index controller