What is JavaScript used for?