updats js to escape ruby code correctly when using in html elements
updates naming of value prompt
adds some basic ruby functions helpful for testing