EXOGTN-1668 [Edit-Inplace] Improve JS for page's composer