remove extra jquery, add new lines