         options.type ?= 'GET'
         options.beforeSend ?= (r) -> null
         $.ajax uri,
-            beforeSend: (r) => addAuth r; options.beforeSend r
+            beforeSend: (r) => addAuth r; addVersion r; options.beforeSend r
             data: options.data
             success: options.success
             error: options.error

            app.run()
            $('#aule').show()
            $('#loading').fadeOut 'fast'
        dataType: 'json'


# Root endpoint of Varda server
API_ROOT = '/'


# Accepted server API versions
ACCEPT_VERSION = '>=0.2.0,<0.3.0'


# Create HTTP Basic Authentication header value
