Converting Javascript from short syntax to long form

Fixed: I had add/remove reversed.