update batch actions JS to respond to dynamically added elements

for @amuntasim in #2731
Merge branch 'master' of https://github.com/react2k/active_admin