Right before I deleted the $document.ready(function)
Updated Scripts with what I think is the correct matchMedia function.
Got rid of alert