javascript complete