Update and rename action.php to action.js