Addition of singleton-pattern.js