updated js
updated js
updated js
adapt to changes of GopherJS