separate worker js from html