parse and validates js modules