modified handling of js escaping in one template