JSOM Get files from a folder

You can use the following code to retrieve all files within a subfolder

CODE