improve map js