Added server worker support from tern/demo/worker