fix strange indentation characters
moved map.invalidateSize() from (document).ready to searchDataChange
moved viewMode switch from tim.js. TODO many small refactorings.
ng-animate is not yet working.