fixes input selectors in preview_index.js, which did not have closing braces