refined js init. working, i think.