Strict mode plus module pattern have been applied

1-) The code now runs on ECMAScript 5 's strict mode;
2-) It uses Module pattern;
3-) It makes JSHint happy :)