remove extra whitespace around the jquery part