add use strict and warnings. fix little bug - nondeclared var $config