Added basic javascript for creating grid