Javascript open draw reader