javascript only add works