changing the verstion from plain text to a javascript variable