javascript mvc puppy