javascript setup example