Cleanup JS; add rows/cols config