start on issue #6. this commit includes most .js files in the js directory. not sure if the sample and temp directories need to be analyzed.