Call setup_js_env before collectstatic (@hodgestar, @justinvdm).