Fix to on_complete and on_failure options.
Add option keep_javascript_variable
Add raw_options option
Merge pull request #3 from MaxLap/master

Fix on_complete and on_failure. Add 2 options