is there any way to use the function from js file to phtml file. Below is the js file that i have called through the data-mage-init. define([ 'jquery', 'jquery/ui' ], function($) { 'use strict'; $.widget('mage.simple2', { _method2: function() { console.log('method2'); }, _method: function() { console.log('method'); } }); return $.mage.simple2; }); […]