         if let sessionTask = activeSessionTask {
             sessionTask.cancel()
         }
-       
+
         let session = NSURLSession.sharedSession()
         activeSessionTask = session.dataTaskWithRequest(request) { (data, response, error) in
             if let httpResponse = response as? NSHTTPURLResponse

    private func loadResponse(response: String) {
        let serializedResponse = JSONStringify(response)
        webView.evaluateJavaScript("Turbolinks.controller.loadResponse(\(serializedResponse))", completionHandler: nil)
    }
    
    private func navigateToLocation(location: NSURL) {

    }
}

class WebViewController: UIViewController, WKNavigationDelegate, WebViewControllerNavigationDelegate {
    static let scriptMessageHandler = ScriptMessageHandler()
    static let sharedWebView = WebViewController.createWebView(scriptMessageHandler)

    var URL = NSURL(string: "http://bc3.dev/195539477/")!
    var activeSessionTask: NSURLSessionTask?
    let webView = WebViewController.sharedWebView

    lazy var loadingIndicator: UIActivityIndicatorView = {
        let indicator = UIActivityIndicatorView(activityIndicatorStyle: .WhiteLarge)
        indicator.setTranslatesAutoresizingMaskIntoConstraints(false)
        indicator.color = UIColor.grayColor()
        return indicator
     }()

    class func createWebView(scriptMessageHandler: WKScriptMessageHandler) -> WKWebView {
        let configuration = WKWebViewConfiguration()
