Allow custom Error and Success callbacks

- use options.success and options.error or defaults
- defaults send directly to console
- add test for long javascript content