Updates to mortarjs for resources infrastructure