adding the helper snippet for erb and ruby log
Fixing the js snippet to log the actual variable