Calculates the approximate size of Javascript object.