"Some JavaScript and a DB" is a web service. It does stuff. Sure if it's small or a basic crud then the moat is small
But if I can replace the value proposition of a startup with "open chatgpt and type a short prompt" then there's not much value in it right. Maybe if there's value in the surrounding services.