use options as locals
rendering to html and js