When we design Java script, we are missing many things. So now onwards if you want to check your java script code then test it in the following URL.
You just need to copy your java script function and click on JSLint. It shows possible error.
More info. about it is in below given link.
Advertisement