Giving a non-JS file should throw an error

Closes #67