Javascript Dom DIsplay Framework