moved socket stuff over to script.js, added Angular controller