added controller.js, responsible for handling user input, extended api.js, responsible for communicating with the backend
refactored screen.js
moved front end js files into own directory