i would actually like to see this get in the JS lib before doing this:
https://github.com/aerogear/aerogear-js/pull/105