If you're looking to load data from your custom table using only javascript (i.e. no C#), you can use our REST service: https://docs.kentico.com/k11/integrating-3rd-party-systems/kentico-rest-service/getting-data-using-rest
As Vasu mentioned, you can use the Code tab of the custom table to generate the default code for the class, then modify this code to meet your needs.