add check_time call every 32th node, restructure code for web worker, add basic code to run in browser