fixed compatibility issues.

Website looks more clean, code is cleaner
thanks to KanibalThrone for the insight!