Pass link target onto the ujs form

This is an old patch from @kuahyeow. Then we can delete rails.js with asset pipeline.