Trey Coding: Defensive Coding in JavaScript