replace window.ENV with app config, see #225, #310