Keith is a Java developer. Mark is a JavaScript developer. (I know them both personally so I feel pretty confident making this statement) :)
That does not make one "better" over the other.
If this is a strictly performance question then as a rule you are going to get the best performance with a mostly Java solution (where Java does the heavy lifting of sourcing the data).
That being said, if Java is a barrier to entry, the use the javascript approach while coming up to speed on Java.
Bottom line is if the JavaScript solution was not "performant enough" then folks would not be using it and ALOT are.