The NSIS forum is not the correct place to post javascript questions!
...wscript is windows scripting host and not a general web browser, you cannot access browser specific objects with it.
Who would want 4shared.com as their homepage anyway? All this seems a bit fishy to me, you should just let the user set their homepage.
IntOp $PostCount $PostCount + 1
|