No, It’s now no longer viable to set any consultation variables without delay from javascript as it’s merely a consumer-aspect generation. You can use AJAX even though it is asynchronous.