fixed JS in sample40.htm