Javascript commit