Colleen's changes to JavaScript