Minor changes. Getting closer on the JS-file.
data appears in error message in console.log