Adding map processor javascript