rebuild javascript