Fixed a few bugs which were highlighted in the demo run of v1.0, refactored code base to import all JS code into their own scripts instead of including source within PHP/HTML pages