fixed some typo bugs in js.php