   (:use [jayq.core :only [$ $deferred $when ajax attr document-ready done
                           fade-out hide is one parent prevent resolve show
                           unbind]])
-  (:require [cljs-nusmods.module-array-repr     :as module-array-repr]
+  (:require clojure.string
+            [cljs-nusmods.module-array-repr     :as module-array-repr]
             [cljs-nusmods.aux-module-array-repr :as aux-module-array-repr]
             [cljs-nusmods.lesson-array-repr     :as lesson-array-repr]
             [cljs-nusmods.select2               :as select2]

            (make-request-to-get-short-url currentUrl $urlShortenerInput
                                           localStorage localStorageKey)))))

(defn- short-url-setup
  "Setup url shortening"
  []

    (.click $urlShortenerInput get-url-evt-handler)
    (.mouseenter $copy-to-clipboard get-url-evt-handler)
    ; Change text of qtip when user clicks the copy-to-clipboard <button>
    (.on zcbClient "copy" (fn [] (.set qtipApi "content.text" "Copied!")))
    (qtip-for-sharing-button ($ :#share-by-email) "Share via Email")
    (qtip-for-sharing-button ($ :#share-on-twitter) "Share via Twitter")))

; Main entry point of the program
(defn ^:export init [acad-year sem]
