Trying to bind function instead of var