add ruby server and move files to public directory
get rid of syntax errot with 'var'