fixed static squares, added js file, clunky