Swapping out 'contains' for 'indexOf', since the former is only supported by Firefox (oops).