Added proper check to load geocomplete.js