add WriteString method
adaption to js.Global change

js.Global in GopherJS used to be a function to get to a global object.
Now, js.Global is a variable that will already reference the window
object.