javascript mq fix