Javascript Single Page App. Code challenge for GeneralAssembly