Add to JS backend support for ##make-global-var and ##apply