rebuilds JS