php and javascript windows interface simulation