WP Ajax on page load not working on bluehost but was working on Godaddy

Okay let me answer my own question because I know nobody can answer this properly without having similar situation!! May be this will be helpful to others. The problem was created by the JavaScript lib ‘html2canvas
It seems like bluehost doesn’t like it’s two options:

allowTaint : Whether to allow cross-origin images to taint the canvas

taintTest : Whether to test each image if it taints the canvas before drawing them

My problem has solved by removing these two options.

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.