var myApp = angular.module('myApp', ['onsen.directives']);

myApp.controller('masterCtrl', function($scope) {

    document.addEventListener("deviceready", onDeviceReady, false);

    function onDeviceReady() {
        
        document.addEventListener("backbutton", onBackKeyDown, false);
    
        function onBackKeyDown() {
            $scope.ons.navigator.popPage();
        }

    }

    $scope.openWebsite = function() {
            window.open('http://www.mozilla.jp/events/devcon/2014/kyoto/');
    };   
});

