Right so take and apply patterns - usually it does not end with anything good. Maximum singleton, and then, far from the most beautiful of its options.
Want to see? very easy. Download popular js frameworks, for example jQuery (which, according to some data, is used on more than half of the "popular sites"). Also, you can download dozens of other cms, for example drupal, joomla (and let it not upset that they are in php / python - html + js to the user anyway).
And the third way. js can always be spied on (sometimes they hide it, but can you hide it?). Open sites of popular sites - Google, Yandex, slashdot. Yes, and do not forget the Hashcode :) See them in Sorets and study.
Yes, the curve crafts of students will mostly come across. But who prevents to try to write them "correctly"? But sometimes, studying even the strangest code, you can find a wonderful reception.
Therefore, stop feeling sad, it's time to read someone else's code and write your own.