JS format: generate scripts