Add proper documentation descriptions
Refactor query string parsing with regex

Discard fragile substring only extraction with regex to acquire the
`teacher` query string value.
Add conditionals around "teacher" info injection
Correct bad array logic test for teacher query string parse
Merge pull request #244 from github/js-fine-tuning

JavaScript tune up, logic improvements