diff --git a/PHPCI/View/BuildsTable.phtml b/PHPCI/View/BuildsTable.phtml
index 09cdd09b..d2cdc736 100644
--- a/PHPCI/View/BuildsTable.phtml
+++ b/PHPCI/View/BuildsTable.phtml
@@ -73,7 +73,7 @@ switch($build->getStatus())
diff --git a/PHPCI/View/Home/index.phtml b/PHPCI/View/Home/index.phtml
index 5e48573c..791888ea 100644
--- a/PHPCI/View/Home/index.phtml
+++ b/PHPCI/View/Home/index.phtml
@@ -60,7 +60,9 @@
+
diff --git a/public/assets/js/init.js b/public/assets/js/init.js
new file mode 100644
index 00000000..c851f648
--- /dev/null
+++ b/public/assets/js/init.js
@@ -0,0 +1,36 @@
+/**
+ * @file init.js
+ * Initialization of frontend of the application goes here
+ *
+ * @author Pavel Pavlov
+ * @date 12/31/13
+ * @time 3:44 AM
+ * @license LICENSE.md
+ *
+ * @package PHPCI
+ */
+
+$(function () {
+ $('#latest-builds').on('latest-builds:reload', bindAppDeleteEvents);
+ $('#latest-builds').trigger('latest-builds:reload');
+});
+
+function bindAppDeleteEvents () {
+ $('.phpci-app-delete-build').on('click', function (e) {
+ e.preventDefault();
+
+ confirmDelete(e.target.href, 'Build').onClose = function () {
+ refreshBuildsTable();
+ };
+
+ return false;
+ });
+
+ $('.phpci-app-delete-user').on('click', function (e) {
+ e.preventDefault();
+
+ confirmDelete(e.target.href, 'User', true);
+
+ return false;
+ });
+}