Did you JSLint your code? Please do.