Update myWorker.js

need to move `var console` to top of code ot make it work