js code generated