Fix syntax error and update require script