Added FileDialog capabilities, fixed a bug in console.log();