js module for mailgun service