Fix init script for web