Update asset file to new structure
local assetHelper = asset.require('util/asset_helper')

local targetId= "SkyTarget0"
local browserId = "SkyBrowser0"
local serverUrl = "https://data.openspaceproject.com/dist/skybrowser/page/"
--local localHostUrl = "http://localhost:8000"

local browser = {
   Type = "ScreenSpaceSkyBrowser",
   Identifier = browserId,
   Name = "Sky Browser",
   Url = serverUrl,
   FaceCamera = false,
   CartesianPosition = {-1.0, -0.5, -2.1},
   Dimensions = { 1000, 1000 },
};

local target = {
   Type = "ScreenSpaceSkyTarget",
   Identifier = targetId,
   Name = "Sky Target",
   FaceCamera = false,
};

asset.onInitialize(function ()
 openspace.addScreenSpaceRenderable(browser)
 openspace.addScreenSpaceRenderable(target)
 openspace.skybrowser.addPairToSkyBrowserModule(targetId,browserId)
 openspace.skybrowser.setSelectedBrowser(browserId)
end)

asset.onDeinitialize(function ()
    openspace.removeScreenSpaceRenderable(browserId)
    openspace.removeScreenSpaceRenderable(targetId)
end)

asset.export("browser", {browser, target})