JavaScript: s/self/this

Fixed typo.