Fixed templates, javascript code outside block js