jQuery plugin that adds beforeorientationchange event