JS offloaded to dedicated file