Performance tweaks, webworkers, normalize style

Signed-off-by: Eli Skeggs <skeggse@gmail.com>