Fixed up JavaScript