javascript trix
minor fixes