Update myscript.js

answered on sto.
works perfectly on jsfiddle.
after enter on ideone and most complicated compilers.