escape javascript in var values properly (thx to Christopher Schultz for the fix. see JIRA issue VELTOOLS-52)