Fixed view update issue and restructured

- Fixed Node routes to return updated bears data in the http response
- Added a data service to modularize http requests
- Restructured code in core.js for modularity and easy reading