Bugfix

addressed issues with FF 34 (and other browsers) expecting different payload types. Thanks to Pedro for invaluable help!