Changed the name of PlayerFactory.js to Player.js. Added Player.js into index.html.