webworker sample code