Create private_function_pattern.js

Add private function pattern