Java script implementation of go fish