1. A method for enabling hardware acceleration of web applications, comprising: parsing a web page using a scripting engine, wherein the web page necessitates running a web application; instantiating a class to create a hardware acceleration object that acts as a bridge between the scripting engine and one or more Application Program Interfaces (APIs) that distribute tasks of the web application among multiple cores of a multi-core central processing unit (CPU) or graphical processing unit (GPU); and accessing the one or more APIs through the hardware acceleration object to create one or more kernels to operate on the multiple cores; wherein the class comprises a compute context class; wherein the hardware acceleration object comprises a compute context object; and wherein the one or more APIs are one or more OpenCL APIs.