Maybe don't polute the global namespace with such generic function names? Wrapping the entire file in (function(){ ... })(); like slide-controller.js does would be one way.