random bits of js code