Spread JS between pages