added timeout support; JSHinted code; fixed README headers