fixed js bug in work items