[c] add copyright headers to js files