Broken base JS for Aaron to look at