Javascript Constant Function Graph Example