JS (Canvas) - Object.size()