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 :)
Remove space at start of the line due to previous line ends with a space.