Added simple javascript solver.

alg06