simple java script grid