1st commit
refactored original script removing jQuery dependency