Server side HTML php and javascript code. First draft