javascript edited