set a JS variable