cleaned up and refactored gamemaster javascripts