Java Script Pattern: singleton