moving commit.js into ui