javascript commit error