Let me say this as simply as possible: You need to test your JavaScript code. Yes, I understand how easy it is to drag your feet when you don't know about the tools that make testing quick and painless for you. That's why I'm here to help.
In my early days of testing, my biggest hangup was the drudgery of configuring and running tests. The "test runner" was at the center of the pain: It consisted of an HTML page that included the test framework, all of my JavaScript files, and all of my test files. To run my tests, I needed to open the page in a browser and run it to see the results. When a test failed, I'd fix some code, return to the browser, and refresh -- or rather, test across multiple browsers and refresh them all, watching each individually for results. To make matters worse, to add a new source file or test, I'd have to manually modify the test runner page to include the new files.