Fix script type for template
Link application and router scripts