put button javascript inside ruby code to access url
Merge pull request #7 from michaelmcchen/ricky_swipe_views

put button javascript inside ruby code to access url