fixes #64
The default_duration variable (in javascript) is now initialized with a template variable holding the user setting.