minor updates to the MC js file