Strict mode
Using a stricter variant of JavaScript called Scrict mode is a way to make JavaScript programming less tolerant of bad code practices in JavaScript. It will also let you know of some errors that might have failed silently before.
Read more about Strict Mode.
Start using it for you backend code.