Refactoring js to keep jshint happy
Make settings.files optional
Update documentation