Update main.js

fixing issue where it isn't immediately updating money/date