Removed dependency in JQuery

Using $interval to check the window size twice a second instead.