Fix JS initialization when jQuery is not defined.