link_to_function is not generating javascript need to debug