JS Reject integrated to handle older browsers