Adding script field attribute to onload event for filereader