Added necessary javascript.
Fixed worker.