Added AppStart js file and implemented self executing functions in js files.