Fixed a small error when jQuery is not present