fixed a bug, the client should no longer crash when it encounters a websocket error. Modifying metabolics.dart to utilize moments instead of directly affecting the html elements