updated javascript in results