ajax call working, graph not appearing yet