Random little Javascript stuff.