Then write it. Javascript itself isn't the problem, naive third-party dependencies are.
Developers are perfectly fine with writing insecure JS all by themselves.