Test for util/media .getState()
Adding util/deparam to deal with URL parameters

From Ben Alman's jQuery BBQ