added webworker
moved the JS to a speerate file