rebuild JavaScript