Loaded jquery with the 'script' loader. Refactored code adding a simple GL class.