Clean up front end logic: ./index.coffee. v 0.10.19