application.js ajax success html bug