Refactored the enqueue script function to have less tabbing