Fix for global variable created.

Removed accidental global variable creation(self)
May 'use strict' from now on.
Update example.js
Merge pull request #819 from syzer/patch-2

Fix for global variable created.