map js fix