I have added $ = jQuery; on to of Custom JS. Still facing the same issue as below.
Also I have tried using QueryItems from SPJS.Utility, then I am getting errors at the View Fields, as my requirement is to retrieve many columns of a different SharePoint List. Shall Share the error soon now,