Php Iterate Over Key Value Javascript Map