Rewrited whole code with prototypes method and removed Google Maps API