Upgraded jQuery versions and made the jQuery loading much more robust
Simplified Autoloader
Upgraded Smarty and fixed including logic