basic page JS now modularized