Add statements for composing a JS function