Working with Ext JS 6.2, I need to create a JS object that has a getId method. Is there any default way to achieve this in JS?