Minor cleanup
Fixed workstate table; store all workstates in the jquery data field