added javascript module pattern template