Little Javascript observer for mediaquery event handling