[JS] - Reordered object init