Update Gaia API documents for #e7a4c26406d163ef2894f7748af4f3b9bd1239fc
    Fix some JShint errors