Let's not add too many things as global variable - this will end ups looking like a C file :) 

Let's declare var removeActive = function() {}; next to addActive.

And I don't hink it will hurt to declare function() {} inside addActive.