here is the .js form working with saving to database. Also i deleted better_errors gem