Rebuilds javascript