Updated php and js