Add title to paste, reorganize frontend
Split app.js into multiple files