jquery inarray stack overflow