Reimplement jQuery for demo purposes only