Moving actionbar sample code into app.js