Browsers don't have the ability to load local files, it's a browsers issue. For Syntax Error, make sure your RPG Maker MZ veresion is 1.9.1 and corescript version is 1.10.0. It'll work.