Script for creating dataURI of file