Editing the jsx script to make it ready for further use

I added a few modules and some utility methods to make a few things easier to do over and over so we can more easily extend the script as we need to. Make sure you read through each commit and ask me if something doesn't make sense before we merge it in!