work with JS. add gem for show errors