Fix bug related to jQuery method access.