changed sendrequest to sendmessage

sendrequest/onrequest were superceded by sendmessage/onmessage in chrome
20, callback function is optional.
changed indentation to 2 space standard