javascript body commit