created helper functions and javascript to initate application.Still facing some errors