Write function to update balance in application.js file. Edit index.html.erb file in welcome views.