Python Array Length Method Javascript