Uncaught SyntaxError: Unexpected token

I have implemented the Ionic Codepen example of the walkthrough feature in my app. However, i am getting the below error message when i run it. Could you please help me in resolving this.

Uncaught SyntaxError: Unexpected token . app.js:9

this is exactly at the below line in my app.js

.config(function($stateProvider, $urlRouterProvider,$ionicConfigProvider) {

Here is my module.

var App = angular.module('App', ['ionic']);

and then it shows this error.

Uncaught Error: [$injector:modulerr] Failed to instantiate module App due to:
Error: [$injector:nomod] Module ‘App’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

Any help would be great.

Thanks,
Aadil

In your index.html ,

 <body ng-app="App">
</body>

Unless you are manually bootstraping.