Add JS event for each page load.

Signed-off-by: crynobone <crynobone@gmail.com>