I don't think we need this method. The code to register the js for a widget only contains one line. There's no need to introduce a method for it.