fixes to amino.js to make general demo work
color code cleanup
share code with general util