inline javascript with template 4