added server controller js and a test.html