subscriptionTypeFromJavascriptString