Rewrite script panel in pure html