replaced != with !==
Added missing semi-colon
Changed positions rules to be more compliant with splipanes
Tidy up code
Added a first level sandbox to execute commands (i.e. 'window', 'document' and 'this' are no more directly accessible)