Make DEBUG setting available in templates/js
Merge pull request #476 from gannetson/feature/sharing

Feature/sharing