working on communication with javascript/php