Initialize frontend environment