fix JS error due to new line