Add clojurescript support

Added file type detection, and put the clojure line type code in a function to share it between clojure & clojurescript.