Switched to this workaround suggested by @fat since it works better with current anchorjs.
/CC @mdo @cvrebert