inline javascript with template 3