Sorted hierarchy of controllers so 'on' and 'emit' are speaking to each other.
Changed paths back to heroku server.