Acomplished the cross-domian xhr. Still need to add error infos in
postmessage