strip off the js part.