[refactor] use multi-line literal for defining js code