Basic pattern library & app.js cleanup