grain JS HTML ready