jQuery plugin registers an element to receive classes relating to viewport changes with optional callback.