Asset watch only in development environment.
JS build fix, without the top-level function safety wrapper.