Changed hardcoded hostname (localhost:8080) in homepage's API
instructions into vars