cheap javascript had to identify ~
added both js and server side print out