Added working display function and json ajax call in firefox.