added few alerts for debugging inside index js file