Replaced (type == 1) ? false : true by type >= 1
Removed atomsToShow in this.getModel
Replaced i++, j++, k++ by ++i, ++j, ++k
Removed e.preventDefault(); in .click