Merge pull request #2 from danholevoet/master

Improves loading of libraries in discovery/JS and adds missing files