fixed javascript bug in index.php (create select)