Non-js file type include feature

Webpack provides functionality to require multiple file type. This fix prevents an error being thrown and also the file resolving in tests.