Fixed sample list javascript in web interface