Hqx(hq2x, hq3x, hq4x) magnification filter with javascript