Cleaned up some CoffeeScript in login module