Back in the days where scripting languages where just scripting languages, programming was something like patchwork. Things somehow had to function in the end since it was linear execution, line by line from beginning to end and sometimes a go statement here and there, it was pretty much basic, so basic that even a programming language was named after the concept. "Basic".
Nowadays , those scripting languages are experiencing a paradigm shift and are becoming object oriented or OOP for it's acronym (Object Oriented Programming).
So what used to be relational like databases became also object oriented and nonrelational. We can see this phenomenon happening with the json formatted and javascript driven databases, the so called, nonsql databases where no query language other than the Javascript statements are used. It is indeed pretty much more complicated to work with arrays and for loops than doing it with a preestablished set of queries that are pretty much similar to english language.
Kind of odd though but, things change and that change is for the better, is for adding more granularity onto proyects, making possible that individuals can contribute and focus on their tiny little object withouth having to know the details of the whole.
These all increases development speed and limits failure. Divide and conquer , so they say.
We see how javascript has become a very powerfull language capable of doing the kind of things that more robust programming languages do. You can now a days program multiplatform apps using only pure javascript and if you wrap it around Angular for instance then you have a fully OOP language with the most advanced concepts such as abstraction, factories, services, providers and so forth.
Still javascript is prefered in the front end side of bussiness, whilst php continues to protagonize the backend side of business but now it has much more potential than ever before, again , thanks to it's OOP super powers. So that the Powerful, Hypertext, Program is now Object Oriented and that gives it a layer of security and granularity.
The limit is the sky and OOP is in it's best moment.