You don't need to explicitly pass null here in javascript. That argument will result as undefined.