JSLint and the live demo site JSFiddle will give you the opportunity to make sure that something is working properly.
As already mentioned, most IDEs will validate your Javascript. Eclipse, Netbeans, PHPEd etc. All have javascript checkers.
Paul dragoonis
source share