graph using javascript.