javascript commit