Fix error in angularJS app when application name has a dot in it

- use slugify method to remove the unnecessary dot
To reproduce, create an app and choose this name: "foo.bar" and run it.