added code for scripting html