move mq to js