refined device.js
added specs for share.js
added specs for js/app.js