removed unnecessary style tags
moved javascript to the bottom of the file, which is where we load all non-essential javascript libraries
combined startups into one method
reworked thumbnail handler that had inherent bugs
further refactoring cleanup
further refactoring cleanup
move code around to clean up slightly
rewrote to show how better practice works, but this still needs quite a bit more effort to be done.