Better Javascript Caller - main_graph()