Regular Expression Engine written in Pure JavaScript