initial refactor
Adds thank you to README
Adds apiURL function
completes initial refactor
Merge pull request #1 from ericalthatcher/refactor

Refactored JavaScript to be DRY and apply JS principles