Fixed minification failure by adding explicit declaration for dependency injection of $window parameter

The lack of explicit declaration for dependency injection caused failure when building a minified version of an application that uses angular-infinite-scroll.

Added explicit declaration of $window parameter for dependency injection.