Updated experiment.js

updated the structure and standards of experiment.js by taking the
pragmatic code and cretaing functions

  initExperimentVariables()
  clickCounter();
  buildExperimentHiddenForm();
  submitExperimentData()