updated ui.js to facilitate checkout2.html

@pdsarin