refactored MainLayoutView_specs to karma mocha specs