js to cofeescripts, and autofocus title on load