added beforeSend and complete callback options
1.0.3