Added Structual SIMilarity calculation in a JS file. Used for checking

SSIM between contiguous frames in a near-frozen frames subtest of camtest.js.

PTAL :)
Move this to the common file section as this is not a test?