removed dependency on MSG.js, hopefully works on mobile safari now