JSHint
Rename all instances of inserted to insert and removed to remove to follow the tense convention of ready.