Remove using undefined in JS bind code.