Extracting script to client/lib/persona.coffee