put newlines before and after javascript content