adding size function to objects prototype in convert.js