Updated grid_functions to prototype more, created rectangle.js