added view and javascript file for exercise 12