html and js escaping in freemarker templates