Added /tests directory, updated app.js to Revealing Module pattern and minor improvements

ADDED a tests directory to the root for testing scripts

UPDATED app.js to a Revealing Module pattern for consistency and
security

UPDATED app.js setting variable for standard JSON format

Minor Improvements