removed a template, fixed so that event callbacks are cleared when changing JavaScript live