Some JavaScript thing I made 4 years ago