added old sample js