security error debugged, new error $ is not defined