reorganized js