Use $.inArray if browser doesn't support Array.indexOf. Resolves #4