build into correct js directory (?)