horses and javascript