Php Change Array Values Javascript Documentation