Is there a specific JavaScript library I should be using with HTML5?

The PubNub Modern JavaScript Library supports the newest browsers with CORS2, WebWorkers and CommonJS.