Adopt standard JS directory structure

Reorganize plugins vs. 3rd-party libs vs internal JS.
'plugins' contains scripts that plug into the more general 3rd-party
libs found in 'vendor'