[#7527] add apache license header to new .js files