reorganized js lib files