Added ability to push Explain. Cleaned up index.php with javascript functions