Initial commit of new failsafe.js plugin
Bugfix