Decoupling Functions with Custom jQuery Events