js: stop using String.startsWith [applied]