Report question

Question: How to stay DRY when using both Javascript and ERB templates (Rails)