I didn't notice that this script block was basically being called in main.js - get it outta there!!