added require.js, jquery, jquery.loadTemplate and structured app in AMD pattern