Javascript Grid Layout Generator Autocad