Minor tweak to web-worker define logic