refactored js, added search query string, preselected embed code, add embed to preview, randomsort order