VIVO-201: removed some java script redundancies