added sendGenericMessage to templates.js