added: generalUtil.js
working in creating a svg from a grid