Cleaned up dead code.
Fixed jQuery trigger call with params.