js vector documentation