fix example config
change tomcat port && update js part