Remove console logs and wrap for jquery.