fixed the client side ugliness.

Fixed the ticker being sent to the render in the detail view; moved the
inline JavaScript to the main script; added sparkline as a local dependency.