change in js to export var