Converted all remaining references from $ to jQuery
check if console functionality exists before logging