       server:
         options:
           port: serverPort
+          useAvailablePort: true
     jasmine:
       test:
         src: sourcePath
         options:
           helpers: helpers
-          host: host
-          keepRunner: true
+          keepRunner: false
           outfile: jasmineSpecRunner
           specs: specs
           styles: styles

  grunt.loadNpmTasks 'grunt-gh-pages'
  grunt.loadNpmTasks 'grunt-jsdoc'

  grunt.registerTask 'default', ['lint', 'connect:server', 'jasmine:test', 'jasmine:coverage']
  grunt.registerTask 'test', ['connect:server', 'jasmine:test']
  grunt.registerTask 'browser-test', ['connect:server:keepalive']
  grunt.registerTask 'coverage', ['connect:server', 'jasmine:coverage']
  grunt.registerTask 'lint', ['jshint', 'coffeelint']
  grunt.registerTask 'doc', ['jsdoc']
  grunt.registerTask 'push-doc', ['doc', 'gh-pages:default']

        src: sourcePath
        options:
          helpers: helpers
          keepRunner: false
          outfile: coverageSpecRunner
          specs: specs
          styles: styles
