Corrected js variable reference