refactored code out of index.html and into seperate directories
Merge pull request #23 from roryc89/index-modularization

refactored code out of index.html and into seperate directories