page-specific javascript for Rails done right