JavaScript attributes module