removed print debug,added js timeout, added examples