for angular 1.3.x, onreadystatechange not longer exist, use onload instand
fixed error for 'can't redefined non-configurable property'
use try catch block to catch exception throw from angular.onload. because angualr.onload does not check the issue when xhr is null or undefined. It is work around for now