Original version of mdObject.js