javascript committed properly