removed reference to jQuery
handled passed settings to compile function