when i tried to call the script files from the aws host to my localhost the script is not getting,showing some error that the \'function is not defined\' and \' is not a fun