adds better error handlers to javascript functions
Merge branch 'two-point-oh' of github.com:clef/wordpress into two-point-oh