Invalid Array Length Javascript Code Checker