Update js code for version list HTML change.