I am trying to write a kind of brute force script in javascript! This is what I have so far:
var charset = [\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\
Length is spelt wrong in your for loop. It should be length not lenght.