now handles JavascriptPlatform