minor cleanup of jquery plugins