Refs #22047; Change the following to createveersion.js

- Reformated the code for better readability
- ajaxVersion is now a post check and check is now given a random
  number from 1 to 100 instead of a counter