Cleaned up some JavaScript