set darkBg function to scope.darkBg
add test for darkBg fn
Fix spelling of $scope