additional changes to make javascript actually work