Changed connection.coffee -> JS