Ajax, mediaquery improved