Is there a way in javascript to reduce the blur of an image in steps through a loop and a variable? I am trying something like this: