Add JSDoc and tests for L.FixMyStreet.Template.