Add respoitory field to package.json
Fix ternary if syntax error