Added old Javascript version