Replaced throttling code with (jQuery) throttle plugin.

This allows for moving the complexity and handling of edge cases away to a separate library, reducing code complexity in the main lightbox script.