(#50) Decouple widget directive and controller instantiation (cleanup, fixed specs in MSIE8 and fixed jshint warnings)