Moved tests to individual js file.
Added a startsWith and wordStartsWith matching to improve the user experience.