completed example with static graph and added jquery ui