This is a minor thing, but the '-' sign should go on the first line so
    Maze.SQUARE_SIZE * (x + 0.5) - 
    obsIcon.getAttribute('width') / 2);