fixed generator template for states and browserify