commit javascript