Added functions.js & actions.php