Maybe that’s a good thing.
PHP needs to shed its image as a crufty language because modern PHP is written differently, I’m sure “the old way” of JS has many similar warts.