Make it compatible with older PHP versions and fix location of CSS link.