Organizing code for tests

patterns.js: created a 'vocabs' array.
vocab.js: minor changes
main.js: moved testing code to tests.js
testall.html: script tag for tests.js
tests.js: moved code from main.js and started coding getSentences
function.