created java script with embeded ruby aka ajax