Rewrite template using a variable because 'with' statement may not be available if strict mode is enabled (problems seen on Chrome and IE).