index.js Javascript code to get the valid key number for a given reference number used for a Swiss BVR.