Add prepare-dir script for web