Enabling latedef lint check.

Part of #360.
Define `success` separately as `success = !callback ? null : function(...)`