Fixed command invokation from jQuery.fn.