Convert Javascript to Clojurescript

Signed-off-by: Geoff Lane <geoff@zorched.net>