Allow users to enable logging instead of hard-coding it into JS
Add explanation about where the debug logs are stored.