Fix code when jQuery not loaded