[SOLVED] Help with Thunderhooves! (javascript)

Howdy and welcome to the forum!

Please be sure to post your code properly formatted. You can learn how here: [Essentials] How To Post/Format Your Code Correctly