Update canvasResize.js

Adding input option keepRatio and maxSquareSize.

You can use them together to make you image fit within a square with maxSquareSize x maxSquareSize and keep the original width/height ratio.

Fixing bugs for iOS sub-sampling for larger image.
Update canvasResize.js

further optimize detectSubsampling function
Update canvasResize.js
Only write VBscript for IE

Check for IE before creating script, android won't load because of it.
enable plugin to be used with dataURL