Removing some unused code.

* postMessage method was removed because self is undeclared in that file, im suppose self is undefined.