changed the code example so that it doesn't need jquery anymore