did some minor refactoring of library files, and app.js by putting in some semi-colons