JavaScript GOF