an attempt at a moo, in javascript