regex.js few functions left undone