Minor fixes

Removed debug output
Removed redundant CSS
Removed unused variables
Prevented AJAX calls when not needed