Have your arguments, and validate it too. -- Slick arguments validator for all your js functions.