Check for jquery live vs on and general cleanup