Update app.js

some bug fixing, add option to show sharing buttons