forgot "use strict". add dollar and log functions