Set javascript VM counts for M/R