Haiku generator in Javascript