split chattr into multiple js files for easier development