Replace alert() with this.log().
Merge pull request #6 from ctbarna/master

Replace alert() with this.log().