trails js update