adding javascript graph exercise in progress