[FIXED JENKINS-16598] Use prototype library to add onclick listener