Understanding Why The Object Type In Javascript Is A Function