Connect to a dataset with javascript

Do you really need a code to connect a dataset to a table ?