Javascript multiframed application with top frame as modules aggregator