Adding javascript to send svg data to controller