moved the templates to protected variables to be easy overridable; declared the block as internal
fixed external_javascripts parameter