fixes #38 

refs #38
https://github.com/pusher/pusher-js/issues/38