Reorganize JS.