Could you use this, which we have and use elsewhere?
https://github.com/mozilla/zamboni/blob/master/mkt/developers/tests/addons/mozball.webapp