javascript working now on link_to re-directions