Fix for global variable created.

Removed accidental global variable creation(self)
May 'use strict' from now on.