strpos analog in js