Javascript section and reorganization