Patch index.coffee to work on frontend.