Updated commit javascript