Moved youtube url ID exctracting code out of template
Moved the cancelDefaultAction helper out of the template