fixes javascript