scripts needed some work

some scripts need to be massaged a little before they can be parsed back into a java script method.