Moved counter and utility code into separate file
Moved percentage bar code into separate JS-file