Javascript Call Function Only Once Each Page Load