fix javascript to change task display