You should load gaia.js first in the html file and not have to declare Gaia here.