Making dirs and JS