update canvas in application.js