Fixed potential loading issues using jQuery hack. Now works 90% of the time.