[MPGJS-1] initial package structure and isValid function