some changes to opentrailview and js libs