use app.html as debug, index.html as release