I know the feeling. However, sometimes this can be largely avoided by using an already tested javascript library such as the yui tools or jquery as base. I'm not sure if they're pertinent to what your doing, but when they are it sure speeds these things up.