Fixed js for png download