Make native JS code from input HTML