Refactored index.html a little
refactored the full screen demo to use the new JS file