singleton implemented

singleton and singleton test (html file, not nice but shows working)