En extract of nibynic's JavaScript Component Pattern.