fix template for compatability with the latest docjson specification