Update #2

Removed unnecessary code from write_to_js.c, and modified a character
skip in index.php.