Add exported version function to web build