Separated app.js into 3 separate files. Added data persistence in local storage.