Added loading message function + little bits

Abstract out 'loading message' overlay.
Check value before try to replace (was giving exception in console)
Minor tabbing / commenting out console.log
Merge pull request #13 from thewheat/8b835f5d44e56716695e7977ecaf58157f79cc50

Nicer loading message + minor changes