Update JavaScript and PHP