JS title field trickery