first simplified version of working angularJS, loading the controller, no services yet, fixed the bug in tiles config