bug - javascript for pages could initiates several times. fixed.