prepare for refactor to http://jschr.github.io/bootstrap-modal/