Changed 'Creating a browser-like window object'

Changed the example for creating a browserlike object, cause it didn`t worked for me at all.