Fixed a host of IE related bugs. Fixed silly errors. Added an onclose event. Adjusted some styling. Added a base64 to file function.