Excluded js files compiled from CoffeeScript.
Set default values for add and remove, thus eliminating some conditional detections.
Used destructuring assignment to simplify code.