Small programs in Javascript