I forgot basic javascript scope