Moved html scripting