first add using javascript