Use strict in morphForm directive
Fix MainController spec
Add missing var declarations