moved all php code to character.php
changed format for IE
resolving conflict