Fix of startsWith bug (not implemented in browsers different from Firefox)