putting jquery scripts back to the htmlgenerator