Add some JavaScript changes that seemingly were not committed earlier.