commit javascript code